﻿using System;

namespace NetCore.Model
{
    public class ErrorModel
    {
        /// <summary>
        /// 状态码
        /// </summary>
        public int Code { get; set; } = 500;

        /// <summary>
        /// 错误信息
        /// </summary>
        public string Msg { get; set; }

        /// <summary>
        /// 错误详情
        /// </summary>
        public string Detail { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        public string Timestamp { get; set; } = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
    }
}